import request from '@/utils/request'

// 查询光伏电站电价信息主列表
export function listElectricityPrice(query) {
  return request({
    url: '/business/electricityPrice/list',
    method: 'get',
    params: query
  })
}

// 查询光伏电站电价信息主详细
export function getElectricityPrice(priceId) {
  return request({
    url: '/business/electricityPrice/getInfoById/' + priceId,
    method: 'get'
  })
}

// 新增光伏电站电价信息主
export function addElectricityPrice(data) {
  return request({
    url: '/business/electricityPrice/add',
    method: 'post',
    data: data
  })
}

// 修改光伏电站电价信息主
export function updateElectricityPrice(data) {
  return request({
    url: '/business/electricityPrice/edit',
    method: 'put',
    data: data
  })
}

// 删除光伏电站电价信息主
export function delElectricityPrice(priceId) {
  return request({
    url: '/business/electricityPrice/remove/' + priceId,
    method: 'delete'
  })
}
